import { prop, Ref } from "@typegoose/typegoose";
import { PurviewType } from "../types/common.type";
import { Base } from "./base";
import { User } from "./user";

/** 便签类 */
export class Note extends Base {

  @prop({})
  remark: string;

  @prop({})
  bgcolor: string;

  @prop({ default: 0 })
  share?: number;

  @prop({ default: PurviewType.Public })
  purview?: PurviewType;

  @prop({ type: User, ref: () => User })
  user: Ref<User>;
}